Skip to content

feat: adding logic to register commands with discord - #4

Merged
jaredgrxss merged 2 commits into
mainfrom
registerCommandsWithDiscord
Aug 10, 2025
Merged

feat: adding logic to register commands with discord#4
jaredgrxss merged 2 commits into
mainfrom
registerCommandsWithDiscord

Conversation

@jaredgrxss

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings August 10, 2025 15:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds command deployment functionality to register Discord slash commands with the Discord API. It introduces a dedicated script to handle command registration and improves the command loading system with better file filtering.

  • Adds a new deployment script for registering commands with Discord API
  • Enhances command file filtering to exclude test files and TypeScript declaration files
  • Updates command typing and removes unused command types for cleaner codebase

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/scripts/deploy-commands.ts New script for deploying commands to Discord API with support for both guild and global registration
src/helpers/commands.ts Enhanced file filtering logic and added type annotations for better command loading
src/@types/commands.ts Simplified command types by commenting out unused button, select, and modal command types
package.json Added npm script for command deployment
README.md Comprehensive documentation update with project details and setup instructions
src/commands/chat-commands/ping.ts Minor change to ping command response text
src/index.ts Updated log message to remove "bot" from the startup message

Comment thread src/scripts/deploy-commands.ts Outdated
Comment thread src/scripts/deploy-commands.ts Outdated
Comment thread src/scripts/deploy-commands.ts Outdated
@jaredgrxss
jaredgrxss force-pushed the registerCommandsWithDiscord branch from 2682e0c to 0d611b5 Compare August 10, 2025 15:07
@jaredgrxss
jaredgrxss merged commit fcf9870 into main Aug 10, 2025
1 check passed
@jaredgrxss
jaredgrxss deleted the registerCommandsWithDiscord branch August 10, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants